package com.xsz.service;

import com.xsz.entity.Possition;
import com.xsz.entity.Resume;
import com.xsz.entity.User;
import com.xsz.repository.ResumeRepository;
import com.xsz.repository.UserRepository;
import com.xsz.util.KeyUtil;
import org.apache.shiro.SecurityUtils;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ResumeService {
    @Resource
    ResumeRepository resumeRepository;
    //新建
    public Resume add(Resume resume) {
        resume.setId(KeyUtil.getId());
        return resumeRepository.save(resume);
    }

//    //查询
//    public Resume selectById(String id) {
//        return resumeRepository.findById(id).get();
//    }
}
